home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / CONVERTR / RTF2HTML / SRC / RTF2HTML.TAR / rtftohtml_src / makefile < prev    next >
Encoding:
Makefile  |  1994-11-05  |  1.3 KB  |  53 lines

  1. # Edit the following two entries for your configuration
  2. LIBDIR=/opt/contrib/etc
  3. BINDIR=/opt/contrib/bin
  4.  
  5.  
  6. IDIRS=-ILibs/OTHER -ILibs/h
  7.  
  8. TRFILES=ansi-gen html-map mac-gen pc-gen pca-gen \
  9.     ansi-sym html-trans mac-sym pc-sym pca-sym Libs/lib/rtf-ctrl 
  10.  
  11. OBJS= rtftohtml.o htmlout.o transinit.o html-unix.o
  12.  
  13. LIBS=Libs/OTHER/libtokenscan.a Libs/lib/librtf.a Libs/lib-unix/lib-unix.a
  14.  
  15.  
  16. rtftohtml:      libs ${OBJS}
  17.     ${CC}   ${CFLAGS} ${OBJS} ${LIBS} -o rtftohtml
  18.  
  19. all:    bindist srcdist
  20.  
  21. libs:    
  22.     cd Libs/OTHER ; ${MAKE} ${MFLAGS}
  23.     cd Libs/h ; ${MAKE} ${MFLAGS}
  24.     cd Libs/lib ; ${MAKE} ${MFLAGS}
  25.     cd Libs/lib-unix ; \
  26.         ${MAKE} ${MFLAGS} CFLAGS='${CFLAGS} -DLIBDIR=\"${LIBDIR}\"'
  27.  
  28. rtftohtml.o:    rtftohtml.c rtftohtml.h Libs/h/rtf.h 
  29.     ${CC}   ${CFLAGS} -c ${IDIRS} $*.c
  30.  
  31. html-unix.o:    html-unix.c Libs/h/rtf-unix.h
  32.     ${CC}   ${CFLAGS} -c ${IDIRS} $*.c
  33.  
  34. htmlout.o:    htmlout.c rtftohtml.h Libs/h/rtf.h
  35.     ${CC}   ${CFLAGS} -c ${IDIRS} $*.c
  36.  
  37. transinit.o:    transinit.c rtftohtml.h Libs/h/rtf.h Libs/OTHER/tokenscan.h
  38.     ${CC}   ${CFLAGS} -c ${IDIRS} $*.c
  39.  
  40. install:    rtftohtml ${TRFILES}
  41.     chmod 755 rtftohtml
  42.     chmod 644 ${TRFILES}
  43.     cp rtftohtml ${BINDIR}
  44.     cp ${TRFILES} ${LIBDIR}
  45.  
  46. clean:    
  47.     cd Libs/h ; ${MAKE} ${MFLAGS} clean
  48.     cd Libs/lib ; ${MAKE} ${MFLAGS} clean
  49.     cd Libs/OTHER ; ${MAKE} ${MFLAGS} clean
  50.     cd Libs/lib-unix ; ${MAKE} ${MFLAGS} clean
  51.     rm -f ${OBJS} rtftohtml 
  52.  
  53.